<script type="text/javascript">
				$('#contactForm').submit(function(event){					
						alert('script running');
							   /* stop form from submitting normally */
	                event.preventDefault();
	
	                /* get some values from elements on the page: */
	                var $form = $(this),
	                    term = $form.find('input[name="s"]').val(),
	                    url = $form.attr('action');
	
	                /* Send the data using post */
	                var posting = $.post(url, {
	                    s: term
	                });
	
	                /* Put the results in a div */
	                posting.done(function(data) {
	                    var content = $(data).find('#content');
	                    $("#result").empty().append(content);
	                });
				});</script>
					<?php if ($form->hasErrors()) { ?>
						<p class="error"><?php echo $form->renderGlobalErrors(); ?><p>
					<?php } ?>
					<form id="contactForm" action="<?php echo url_for('contact_feedback') ?>" method="POST">
	                    <div>
						<label for="nameinput"><?php echo __('Your name'); ?></label>
							  <?php echo $form['name']; ?>
							  <?php if ($form['name']->hasError()) { ?>
							  	<span class="error"><?php echo $form['name']->renderError() ?></span>
							  <?php } ?>
						</div>
	                    <div>
						<label for="emailinput"><?php echo __('Your phone'); ?></label>
							<?php echo $form['phone']; ?>
							<?php if ($form['phone']->hasError()) { ?>
							  <span class="error"><?php echo $form['phone']->renderError() ?></span>
							  <?php } ?>
	                    </div>
	                    <div>
						<label for="emailinput"><?php echo __('Your email'); ?></label>
							<?php echo $form['email']; ?>
							<?php if ($form['email']->hasError()) { ?>
							  <span class="error"><?php echo $form['email']->renderError() ?></span>
							  <?php } ?>
	                    </div>
	                    <div>
	                    	<label for="organizationinput"><?php echo __('Organization'); ?></label>
							<?php echo $form['organization']; ?>
							<?php if ($form['organization']->hasError()) { ?>
							  <span class="error"><?php echo $form['organization']->renderError() ?></span>
							  <?php } ?>
	                    </div>
	                    <div>
						<label for="commentinput"><?php echo __('Your message'); ?></label>
							<?php echo $form['message']; ?>
							<?php if ($form['message']->hasError()) { ?>
							  <span class="error"><?php echo $form['message']->renderError() ?></span>
							  <?php } ?>
	                    </div>
                    
                    	<input type="hidden" name="submitted" id="submitted" value="true" />
						<button type="submit" id="submitbutton" class="submitbutton">
							<?php echo __("SEND"); ?></button>
					    <?php echo $form->renderHiddenFields(false) ?>

					</form>